<template>
    <div class="father">
        <h1>这是father组件》。。</h1>
        <Son :message="msg" :username="username"></Son>
    </div>
</template>

<script>
    import Son from "@/components/Son";
    export default {
        name: "Father",
        data(){
            return{
                msg:'父传值到子...',
                username:'laozhang'
            }
        },
        components:{
            Son
        }
    }
</script>

<style scoped>

</style>